home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mintmant
/
psigsetm.txt
< prev
next >
Wrap
Text File
|
1992-03-24
|
2KB
|
64 lines
Psigblock(2) Oct. 1, 1991 Psigblock(2)
NAME
Psigblock, Psigsetmask - block or unblock delivery of sig-
nals
SYNOPSIS
LONG Psigblock( LONG mask );
LONG Psigsetmask( LONG mask );
DESCRIPTION
Psigblock adds the set of signals defined by the variable
mask to the set of signals which are blocked from delivery.
Each bit of mask represents a signal; if bit n of mask is
set, then signal number n is blocked. Psigblock returns the
set of blocked signals as it was prior to the new signals
being added to it; the old set can thus be restored with the
Psigsetmask call.
Psigsetmask replaces the set of blocked signals with the set
in mask; the bits of mask have the same meaning as they do
for Psigblock, except that bits that are set to 0 will cause
the corresponding signals to no longer be blocked. Psigset-
mask returns the old set of blocked signals.
Note that certain signals (e.g. SIGKILL) cannot be blocked,
and the kernel will (silently) clear the corresponding bits
in mask before changing the blocked signal set.
Blocked signals remain blocked across Pfork and Pvfork
calls. After a Pexec call, the child process will always
start with an empty set of blocked signals, regardless of
which signals were blocked by the parent.
SEE ALSO
Pkill(2), Psignal(2), Psigpending(2)
Version 0.9 Last change: MiNT Programmer's Manual 1